package com.moxiao.yfjh.module.blind.convert.distributionsharing;

import com.moxiao.yfjh.framework.common.pojo.PageResult;
import com.moxiao.yfjh.module.blind.controller.admin.distributionsharing.vo.DistributionSharingCreateReqVO;
import com.moxiao.yfjh.module.blind.controller.admin.distributionsharing.vo.DistributionSharingExcelVO;
import com.moxiao.yfjh.module.blind.controller.admin.distributionsharing.vo.DistributionSharingRespVO;
import com.moxiao.yfjh.module.blind.controller.admin.distributionsharing.vo.DistributionSharingUpdateReqVO;
import com.moxiao.yfjh.module.blind.dal.dataobject.distributionsharing.DistributionSharingDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 相亲分销分享 Convert
 *
 * @author mx
 */
@Mapper
public interface DistributionSharingConvert {

    DistributionSharingConvert INSTANCE = Mappers.getMapper(DistributionSharingConvert.class);

    DistributionSharingDO convert(DistributionSharingCreateReqVO bean);

    DistributionSharingDO convert(DistributionSharingUpdateReqVO bean);

    DistributionSharingRespVO convert(DistributionSharingDO bean);

    List<DistributionSharingRespVO> convertList(List<DistributionSharingDO> list);

    PageResult<DistributionSharingRespVO> convertPage(PageResult<DistributionSharingDO> page);

    List<DistributionSharingExcelVO> convertList02(List<DistributionSharingDO> list);

}
